package com.hq.service.impl;

import com.hq.dao.CusDao;
import com.hq.pojo.Custome;
import com.hq.service.CusService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CusImpl implements CusService {

    @Resource
    CusDao cusDao;

    @Override
    public int ins_cus(Custome custome) throws Exception {
        return cusDao.ins_cus(custome);
    }

    @Override
    public int del_cus(Integer customerid) throws Exception {
        return cusDao.del_cus(customerid);
    }

    @Override
    public int upd_cus(Custome custome) throws Exception {
        return cusDao.upd_cus(custome);
    }

    @Override
    public Custome sel_cus(Custome custome) throws Exception {
        return cusDao.sel_cus(custome);
    }

    @Override
    public List<Custome> cus_list_all() throws Exception {
        return cusDao.cus_list_all();
    }

    @Override
    public int sel_quantity_cus() throws Exception {
        return cusDao.sel_quantity_cus();
    }
}
